var webPath = "";
var editor;
$(document).ready(function(){
	webPath = $("#webPath").val();
	var msg = $("#message").val();
	if(msg != ""){
		alert(msg);
	}
});

function goBack(){
	document.form1.action = webPath + "/admin/complaint!list.action";
	document.form1.submit();
}

function submit(value){
	$("#queState").val(value);
	document.form1.action = webPath + "/admin/complaint!audit.action";
	document.form1.submit();
}

function del(queId){
	if(queId == null || queId == ""){
		alert("请选择一条投诉上报！");
		return false;
	}
	var question = confirm("确定删除吗？");
	if(question){
		document.form1.action = webPath + "/admin/complaint!del.action?queId="+queId;
		document.form1.submit();
	}
}